const loading = () => {  // 加载中
	uni.showLoading({
		'title': '数据加载中...'
	})
}

const fail = (err) => {
	uni.showToast({
		'title': err || '发生错误'
	})
}

const login = () => {
	uni.showLoading({
		'title': '登录中...'
	})
}

const paying = () => {
	uni.showLoading({
		'title': '支付中...'
	})
}

const loadInfo = info => {
	uni.showLoading({
		'title': info
	})
}

const hide = () => {
	uni.hideLoading()
}

export default {
	loading,
	hide,
	login,
	paying,
	loadInfo
}